package ace.cmp.security.core.impl.model.principal;

import ace.cmp.security.core.impl.model.dto.AceIntrospectPrincipalDto;
import org.springframework.security.oauth2.core.OAuth2AuthenticatedPrincipal;

/**
 * @author caspar
 * @date 2023/8/1 15:19 ACE 架构 oauth2 认证的 principal
 */
public interface AceOauth2AuthenticatedPrincipal<T extends AceIntrospectPrincipalDto>
    extends OAuth2AuthenticatedPrincipal {
  /**
   * 认证对象身份
   *
   * @return
   */
  T getPrincipal();
}
